package cn.erp.app.service;

import java.util.List;

import com.jfinal.plugin.activerecord.Page;

import cn.erp.common.model.SystemUser;

public class UserService {

	public static UserService me = new UserService();

	public List<SystemUser> getAll() {
		return SystemUser.dao.find("select * from system_user");
	}

	public Page<SystemUser> getAllForPage(int pageNumber, int pageSize) {
		return SystemUser.dao.paginate(pageNumber, pageSize, "select * ",
				"from system_user");// ("select * from system_user");
	}

}
